<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> <script type="text/javascript" src="/Scripts/ParentChildResources.js"></script> <script type="text/javascript"> fields = init_fields_v2(); var parentID = GetUrlKeyValue('parentID'); if(parentID!==''){ // Hide the parent fields $(fields['Parent']).hide(); // Wait intil the page has loaded to set the lookup column $(document).ready(function(){ setlookupValue(parentID,'Parent'); }); } </script>